package com.stone.sys.service;

/**
 * <pre>
 * 字典查询Service
 * </pre>
 */

import java.util.List;
import com.stone.sys.pojo.TDictionary;

import frm.ssh.exception.AppException;
import frm.ssh.service.BaseService;

public class DictionaryService extends BaseService {
	
	/**
	 * 按类型读取LIST
	 * @param common
	 */
	
	@SuppressWarnings("unchecked")
	public List<TDictionary> findList(String dictype) throws AppException  {
		
		String hql = "from TDictionary d where d.itemType='"+ dictype +"'  order by sortid";
		
		List<TDictionary> list = super.findListByHql(hql);
		
		return list;
		
	}

}
